/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmTimKiemHoaDon.java
 *
 * Created on Aug 30, 2012, 1:49:03 PM
 */
package gui;

/**
 *
 * @author dtth
 */
public class frmTimKiemHoaDon extends javax.swing.JFrame {

    /** Creates new form frmTimKiemHoaDon */
    public frmTimKiemHoaDon() {
        initComponents();
        this.setSize(810, 550);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel4 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jpnlTimTheoHoaDon = new javax.swing.JPanel();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        jDateChooser2 = new com.toedter.calendar.JDateChooser();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jbtnTimKiem = new javax.swing.JButton();
        jbtnDong = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        jDateChooser4 = new com.toedter.calendar.JDateChooser();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setResizable(false);
        getContentPane().setLayout(null);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo tên và Mã hóa đơn"));
        jPanel4.setLayout(null);

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel3.setText("Mã HD");
        jPanel4.add(jLabel3);
        jLabel3.setBounds(16, 33, 35, 15);

        jTextField2.setFont(new java.awt.Font("Tahoma", 0, 12));
        jTextField2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField2ActionPerformed(evt);
            }
        });
        jPanel4.add(jTextField2);
        jTextField2.setBounds(62, 27, 212, 21);

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel4.setText("Tên HD");
        jPanel4.add(jLabel4);
        jLabel4.setBounds(16, 62, 42, 15);

        jTextField1.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel4.add(jTextField1);
        jTextField1.setBounds(62, 59, 212, 21);

        getContentPane().add(jPanel4);
        jPanel4.setBounds(10, 40, 0, 0);

        jpnlTimTheoHoaDon.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo ngày"));
        jpnlTimTheoHoaDon.setLayout(null);

        jDateChooser1.setDateFormatString("dd/MM/yyyy");
        jpnlTimTheoHoaDon.add(jDateChooser1);
        jDateChooser1.setBounds(62, 27, 262, 25);

        jDateChooser2.setDateFormatString("dd/MM/yyyy");
        jpnlTimTheoHoaDon.add(jDateChooser2);
        jDateChooser2.setBounds(62, 63, 262, 25);

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel5.setText("Tên HD");
        jpnlTimTheoHoaDon.add(jLabel5);
        jLabel5.setBounds(16, 37, 42, 15);

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel6.setText("Tên HD");
        jpnlTimTheoHoaDon.add(jLabel6);
        jLabel6.setBounds(16, 73, 42, 15);

        getContentPane().add(jpnlTimTheoHoaDon);
        jpnlTimTheoHoaDon.setBounds(310, 40, 0, 0);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("TÌM KIẾM HÓA ĐƠN");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 10, 780, 17);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Kết quả tìm kiếm"));
        jPanel1.setLayout(null);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        jPanel1.add(jScrollPane1);
        jScrollPane1.setBounds(10, 20, 760, 270);

        getContentPane().add(jPanel1);
        jPanel1.setBounds(10, 150, 780, 300);

        jbtnTimKiem.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbtnTimKiem.setText("Tìm");
        jbtnTimKiem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnTimKiemActionPerformed(evt);
            }
        });
        getContentPane().add(jbtnTimKiem);
        jbtnTimKiem.setBounds(670, 90, 110, 50);

        jbtnDong.setFont(new java.awt.Font("Tahoma", 0, 12));
        jbtnDong.setText("Đóng");
        jbtnDong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnDongActionPerformed(evt);
            }
        });
        getContentPane().add(jbtnDong);
        jbtnDong.setBounds(640, 460, 150, 50);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo tên và Mã hóa đơn"));
        jPanel2.setLayout(null);

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel2.setText("Tên HĐ:");
        jPanel2.add(jLabel2);
        jLabel2.setBounds(10, 70, 50, 15);

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel7.setText("Mã HĐ:");
        jPanel2.add(jLabel7);
        jLabel7.setBounds(10, 30, 70, 15);

        jTextField3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jPanel2.add(jTextField3);
        jTextField3.setBounds(70, 20, 230, 30);
        jPanel2.add(jTextField4);
        jTextField4.setBounds(70, 60, 230, 30);

        getContentPane().add(jPanel2);
        jPanel2.setBounds(10, 40, 310, 100);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Tìm theo ngày"));
        jPanel3.setLayout(null);

        jDateChooser3.setDateFormatString("dd/MM/yyyy");
        jPanel3.add(jDateChooser3);
        jDateChooser3.setBounds(120, 20, 220, 30);

        jDateChooser4.setDateFormatString("dd/MM/yyyy");
        jPanel3.add(jDateChooser4);
        jDateChooser4.setBounds(120, 60, 220, 30);

        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel8.setText("Đến ngày");
        jPanel3.add(jLabel8);
        jLabel8.setBounds(20, 70, 60, 15);

        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel9.setText("Từ ngày");
        jPanel3.add(jLabel9);
        jLabel9.setBounds(20, 30, 60, 15);

        getContentPane().add(jPanel3);
        jPanel3.setBounds(320, 40, 350, 100);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTextField2ActionPerformed

private void jbtnTimKiemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnTimKiemActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jbtnTimKiemActionPerformed

private void jbtnDongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnDongActionPerformed
// TODO add your handling code here:
    this.dispose();
}//GEN-LAST:event_jbtnDongActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemHoaDon.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemHoaDon.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemHoaDon.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(frmTimKiemHoaDon.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new frmTimKiemHoaDon().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private com.toedter.calendar.JDateChooser jDateChooser2;
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private com.toedter.calendar.JDateChooser jDateChooser4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JButton jbtnDong;
    private javax.swing.JButton jbtnTimKiem;
    private javax.swing.JPanel jpnlTimTheoHoaDon;
    // End of variables declaration//GEN-END:variables
}
